package ncov.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * (Department)实体类
 *
 * @author makejava
 * @since 2020-06-04 15:48:49
 */
public class Department implements Serializable {
    private static final long serialVersionUID = -16709328077981284L;
    
    private Integer deptId;
    
    private String deptName;

    private Integer headcount;

    private Integer submittedCount;

    // 配置部门-班级单向一对多映射
    private Set<Grade> grades = new HashSet<>();

    public Department() {}

    public Department(Integer deptId, String deptName, Integer headcount, Integer submittedCount) {
        this.deptId = deptId;
        this.deptName = deptName;
        this.headcount = headcount;
        this.submittedCount = submittedCount;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }
    
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Set<Grade> getGrades() {
        return grades;
    }

    public void setGrades(Set<Grade> grades) {
        this.grades = grades;
    }

    public Integer getHeadcount() {
        return headcount;
    }

    public void setHeadcount(Integer headcount) {
        this.headcount = headcount;
    }

    public Integer getSubmittedCount() {
        return submittedCount;
    }

    public void setSubmittedCount(Integer submittedCount) {
        this.submittedCount = submittedCount;
    }

    @Override
    public String toString() {
        return "Department{" +
                "deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", headcount=" + headcount +
                ", submittedCount=" + submittedCount +
                '}';
    }
}